package com.czxy.demo02;

import java.util.Scanner;

public class Test01 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int a = sc.nextInt();
        switch (a){
            case 3:
                System.out.println("3月份是春季");
                break;
            case 4:
                System.out.println("4月份是春季");
                break;
            case 5:
                System.out.println("5月份是春季");
                break;
            case 6:
                System.out.println("6月份是夏季");
                break;
            case 7:
                System.out.println("7月份是夏季");
                break;
            case 8:
                System.out.println("8月份是夏季");
                break;
            case 9:
                System.out.println("9月份是秋季");
                break;
            case 10:
                System.out.println("10月份是秋季");
                break;
            case 11:
                System.out.println("11月份是秋季");
                break;
            case 12:
                System.out.println("12月份是冬季");
                break;
            case 1:
                System.out.println("1月份是冬季");
                break;
            case 2:
                System.out.println("2月份是冬季");
                break;
            default:
                System.out.println("请输入正确的数字 范围1-12");
        }
    }
}
